Skip to content

Conversation

alesanchezr
Copy link
Contributor

The "Feature Asset" toggle was relocated from /workspace/src/app/views/media/components/AssetMeta.js to /workspace/src/app/views/media/components/ComposeAsset.js.

  • In AssetMeta.js, the FeatureCard component and its corresponding usage were entirely removed.
  • In ComposeAsset.js, the toggle's functionality was re-implemented:
    • New state variables (isFeatured, featureLoading) and a handleToggleFeature function were added to manage the feature status and API interactions.
    • The isFeatured state is now initialized when the asset data loads via bc.registry().getAsset.
    • The toggle UI, utilizing Material-UI Switch, FormControlLabel, and Tooltip, was integrated into the main asset information area.
  • The toggle is now positioned within the flex container, immediately following the language selector, aligning with the requested location.
  • All original functionality, including API integration, loading states, and toast notifications, was preserved.

Copy link

vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
academy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 10:51pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants